<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    {% if num > 4 %}
    <p>num的值大于4</p>
    {% elseif num < 4 %} 
    <p>num的值小于4</p>
    {% else %}
    <p>num的值等于4</p>
    {% endif %}
</body>

</html>